package com.ycz.master.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ycz.master.pojo.Emp;
import com.ycz.master.pojo.EmpAndEmpTypeAndDept;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * author zyc
 * Created on 2021/9/30 13:19
 */
public interface EmpServcie extends IService<Emp> {

    //登录
    public Emp login(String account,String password);

    //查询所有员工
    public List<EmpAndEmpTypeAndDept> findallemp();

    //根据id查询员工
    public Emp findById(Integer id);

    //修改员工信息
    public Boolean updataemp(Emp emp);

    //更改密码
    public Boolean change(String account,String password,String oldpassword);

    //新增员工
    int insertemp(Emp emp);
}
